package demo5.dao;

import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Repository
public class UserDaoImpl implements IUserDAO{
    @Override
    public boolean findUser() {
        double r=Math.random();
        if (r>0.5){
            System.out.println("UserDAO:找到该用户将其返回");
            return true;
        }else {
            System.out.println("UserDAO:未找到该用户！！！");
            return false;
        }
    }
}
